import time
from django.http import HttpResponse
from .tasks import async_task


def test_celery(request):
    print("人生得意须尽欢")
    # 突然发现,有一个阻塞的任务,比如:发邮件
    async_task.delay()

    return HttpResponse(time.strftime("%H:%M:%S"))




